<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@attribute name="label" required="true" rtexprvalue="false"%>
<%@attribute name="id" required="true" rtexprvalue="false"%>
<%@attribute name="withEmpty" required="false" rtexprvalue="false"%>
<%@attribute name="items" type="java.util.Map" required="true"%>
<%@ attribute name="mandatory" required="false" rtexprvalue="false"%>
<%@ attribute name="big" required="false" rtexprvalue="false"%>
<c:if test="${not empty big}">
 <c:set var="big" value="Big" />
 <c:set var="class" value="bigField" />
</c:if>
<div class="form${big}Column">
 <div class="formLabel">
  <c:if test="${empty mandatory}">
   <form:label path="${id}" class="normal">
    <span class="normal"><spring:message code="${label}" /></span>
   </form:label>
  </c:if>
  <c:if test="${not empty mandatory}">
   <form:label path="${id}" class="mandatory">
    <spring:message code="${label}" />
    <span class="redStar">*</span>
   </form:label>
  </c:if>
 </div>
 <div class="form${big}Field">
  <form:select path="${id}">
   <c:if test="${not empty withEmpty}">
    <form:option value=""></form:option>
   </c:if>
   <form:options items="${items}" />
  </form:select>
 </div>
</div>